<include file="Index/header" />
<include file="Index/left" />
<!-- 内容区域 -->
<!-- 内容区域 -->
<div class="tpl-content-wrapper">
    <div class="row-content am-cf">
        <div class="row">
            <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                <div class="widget am-cf">
                    <div class="widget-head am-cf">
                        <div class="widget-title  am-cf">产品列表</div>


                    </div>
                    <div class="widget-body  am-fr">
                        <form action="admin.php" method="get">
                        <div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
                            <div class="am-form-group">
                                <div class="am-btn-toolbar">
                                    <div class="am-btn-group am-btn-group-xs">
                                        <button type="button" class="am-btn am-btn-default am-btn-success" id="button-add"><span class="am-icon-plus"></span> 新增</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                            <div class="am-form-group tpl-table-list-select">
                                <select data-am-selected="{btnSize: 'sm'}" name="catid">
                                    <option value="0">所有类型</option>
                                    <volist name="catelsit" id="catelist">
                                    <option value="{$catelist.id}" >{$catelist.catname}</option>
                                    </volist>
                                </select>
                            </div>
                        </div>
                        <div class="am-u-sm-12 am-u-md-12 am-u-lg-3">
                            <div class="am-input-group am-input-group-sm tpl-form-border-form cl-p">
                                <input type="text" class="am-form-field " name="title">
                                        <span class="am-input-group-btn">
            <button class="am-btn  am-btn-default am-btn-success tpl-table-list-field am-icon-search" id="sub_data" type="submit"></button>
          </span>
                            </div>
                        </div>
                            <input type="hidden" name="c" value="product"/>
                            <input type="hidden" name="a" value="index"/>
                        </form>
                        <div class="am-u-sm-12">
                            <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black missj-table">
                                <thead>
                                <tr>
                                    <th>ID</th>
                                    <th>产品缩略图</th>
                                    <th>产品名称</th>
                                    <th>货号</th>
                                    <th>类型</th>
                                    <th>材质</th>
                                    <th>工艺</th>
                                    <th>发型</th>
                                    <th>发布时间</th>
                                    <th>更新时间</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <volist name="product" id="pro">
                                <tr class="gradeX">
                                    <td class="am-text-middle">{$pro.id}</td>
                                    <td>
                                        <img src="{$pro.thumb}" width="60" height="40" class="tpl-table-line-img" alt="">
                                    </td>
                                    <td class="am-text-middle"><a href="index.php?c=product&a=detail&id={$pro.id}" target="_blank">{$pro.pname}</a></td>
                                    <td class="am-text-middle">{$pro.code}</td>
                                    <td class="am-text-middle">{$pro.catid|getcatname=$catelsit,###}</td>
                                    <td class="am-text-middle">{$pro.material|getmaterialById}</td>
                                    <td class="am-text-middle">{$pro.tech|gettechbyid}</td>
                                    <td class="am-text-middle">{$pro.model|getmodelbyid}</td>
                                    <td class="am-text-middle">{$pro.inputtime|date="Y-m-d H:i",###}</td>
                                    <td class="am-text-middle">{$pro.updatetime|date="Y-m-d H:i",###}</td>
                                    <td class="am-text-middle">
                                        <div class="tpl-table-black-operation">
                                            <a href="javascript:void(0)" id="missj-edit" attr-id="{$pro['id']}">
                                                <i class="am-icon-pencil"></i> 编辑
                                            </a>
                                            <a href="javascript:void(0)" id="missj-delete"  attr-id="{$pro.id}" attr-message="删除" class="tpl-table-black-operation-del">
                                                <i class="am-icon-trash"></i> 删除
                                            </a>
                                        </div>
                                    </td>
                                </tr>
                                </volist>
                                <!-- more data -->
                                </tbody>
                            </table>
                        </div>
                        <div class="am-u-lg-12 am-cf">

                            <div class="am-fr">
                                {$pageres}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
</div>
<script>
    var SCOPE = {
        'edit_url' : 'admin.php?c=product&a=edit',
        'add_url' : 'admin.php?c=product&a=add',
        'set_status_url' : 'admin.php?c=product&a=setStatus',
        'sing_news_view_url' : 'index.php?c=view',
        'listorder_url' : 'admin.php?c=product&a=listorder',
        'push_url' : 'admin.php?c=product&a=push',
    }
</script>
<include file="Index/footer" />